package br.unisul.prolinear.view;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.event.ActionEvent;

import br.unisul.prolinear.controller.CadastroController;

@ManagedBean
@ViewScoped
public class RedefinicaoBean extends Bean implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String email;
	private CadastroController cadastroController;

	public RedefinicaoBean() {
		cadastroController = new CadastroController();
	}
	
	public void redefinirSenha(ActionEvent actionEvent){
		cadastroController.redefinirSenha(email);
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


}
